package com.tungse.json;

import lombok.Data;
import org.codehaus.jackson.annotate.JsonAnyGetter;
import org.codehaus.jackson.annotate.JsonAnySetter;

import java.util.HashMap;
import java.util.Map;

/**
 * @Author : Tungse
 * @Date: 2025/7/10 14:11
 * @Description:
 */
public class EntityTest {
    private String limitedEdition;
    private String extraNotes;
    private Map<String, Object> otherProps = new HashMap<>();

    public String getLimitedEdition() {
        return limitedEdition;
    }

    public void setLimitedEdition(String limitedEdition) {
        this.limitedEdition = limitedEdition;
    }

    public String getExtraNotes() {
        return extraNotes;
    }

    public void setExtraNotes(String extraNotes) {
        this.extraNotes = extraNotes;
    }
    @JsonAnyGetter
    public Map<String, Object> getOtherProps() {
        return otherProps;
    }

    public void setOtherProps(Map<String, Object> otherProps) {
        this.otherProps = otherProps;
    }


    @JsonAnySetter
    public void add(String key, Object value) {
        otherProps.put(key, value);
    }
}
